package com.mingqijia.gassafety.db.mapper;

import com.mingqijia.gassafety.db.entity.FieldListShow;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import javax.validation.constraints.NotBlank;
import java.util.List;

/**
 * <p>
 * 系统列表字段自定义 Mapper 接口
 * </p>
 *
 * @author fei.zhang
 * @since 2023-09-22
 */
@Repository
@Mapper
public interface FieldListShowMapper extends BaseMapper<FieldListShow> {

    void copyDataBySpid(@Param("spId") String spId);

    List<Integer> selectCategory(@Param("listCode")String listCode,@Param("spId") String spId);

    void updateDataBySpid(@Param("spId")String spId,  @Param("listCode")String listCode);

    void updateDataBySpidAndListCode(@Param("spId")String spId, @Param("listCode")String listCode
            , @Param("fieldCode")String fieldCode, @Param("sort")int sort, @Param("showStatus")Integer showStatus);

}
